package com.krain.ddbb.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Class description
 *
 * @author yamin
 * @date 2016/2/3 上午 11:02
 */
public class UserServer implements Parcelable {
    private String picture;
    private int order_status;
    private String username;
    private String phone;
    private int order_num;
    private int technology_score;
    private int polite_score;
    private int time_score;

    public int getPolite_score() {
        return polite_score;
    }

    public void setPolite_score(int polite_score) {
        this.polite_score = polite_score;
    }

    public int getOrder_status() {
        return order_status;
    }

    public void setOrder_status(int order_status) {
        this.order_status = order_status;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getOrder_num() {
        return order_num;
    }

    public void setOrder_num(int order_num) {
        this.order_num = order_num;
    }

    public int getTechnology_score() {
        return technology_score;
    }

    public void setTechnology_score(int technology_score) {
        this.technology_score = technology_score;
    }

    public int getTime_score() {
        return time_score;
    }

    public void setTime_score(int time_score) {
        this.time_score = time_score;
    }

    public String getPicture() {

        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public UserServer() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.picture);
        dest.writeInt(this.order_status);
        dest.writeString(this.username);
        dest.writeString(this.phone);
        dest.writeInt(this.order_num);
        dest.writeInt(this.technology_score);
        dest.writeInt(this.polite_score);
        dest.writeInt(this.time_score);
    }

    protected UserServer(Parcel in) {
        this.picture = in.readString();
        this.order_status = in.readInt();
        this.username = in.readString();
        this.phone = in.readString();
        this.order_num = in.readInt();
        this.technology_score = in.readInt();
        this.polite_score = in.readInt();
        this.time_score = in.readInt();
    }

    public static final Creator<UserServer> CREATOR = new Creator<UserServer>() {
        public UserServer createFromParcel(Parcel source) {
            return new UserServer(source);
        }

        public UserServer[] newArray(int size) {
            return new UserServer[size];
        }
    };
}
